package com.css.zfzx.fxpg.modules.preestimate.report.repository.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author leon
 * @date 2020-11-18
 */
@Data
@Entity
@Table(name = "fx_preestimate_report")
public class FxPreestimateReportEntity implements Serializable {

    /**
     * 报告（简本）
     */
    @Column(name = "report_brief_name")
    private String reportBriefName;
    /**
     * 报告（详本）ID
     */
    @Column(name = "report_detail_id")
    private String reportDetailId;
    /**
     * 报告
     */
    @Column(name = "report_name")
    private String reportName;
    /**
     * 报告ID
     */
    @Column(name = "report_id")
    private String reportId;
    /**
     * 编制单位（多个省局以‘,’分隔）
     */
    @Column(name = "unit")
    private String unit;
    /**
     * 是否有效,0:无效,1:有效
     */
    @Column(name = "is_valid")
    private String isValid;
    /**
     * 行政区划组合编码+探槽码
     */
    @Column(name = "object_code")
    private String objectCode;
    /**
     * 修改人
     */
    @Column(name = "update_user")
    private String updateUser;
    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;
    /**
     * ID
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 报告（简本）ID
     */
    @Column(name = "report_brief_id")
    private String reportBriefId;
    /**
     * 工作区名称
     */
    @Column(name = "workspace")
    private String workspace;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 分区标识
     */
    @Column(name = "partition_flag")
    private String partitionFlag;
    /**
     * 报告（详本）
     */
    @Column(name = "report_detail_name")
    private String reportDetailName;
    /**
     * 年度
     */
    @Column(name = "year")
    private String year;

}

